﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using PromoCodes_Models.Entities;
using System.Web;

namespace PromoCodes_Models.Concrete
{
    public class EFDbContext : DbContext
    {
        public static EFDbContext Context { get { return HttpContext.Current.Items["EntityContext"] as EFDbContext; } }
        public DbSet<Product> Products { get; set; }
        public DbSet<Promotion> Promotions { get; set; }
    }
}
